package view;

import java.awt.Color;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JPanel;

import controller.Controller;

public class GlassPane extends JPanel implements MouseListener, KeyListener{
	private static final long serialVersionUID = 1L;
	protected Stage parent;
	protected Controller controller;
	protected CraftPanel craftingTable;

	public GlassPane(Stage parent, Controller controller){
		this.parent = parent;
		this.controller = controller;
		this.setFocusable(true);
		this.addMouseListener(this);
		setBackground(Color.cyan);
		init();
	}
	
	private void init(){
		setOpaque(true);
		setVisible(false);
		
		craftingTable = new CraftPanel(parent, controller);
		add(craftingTable);
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
	}

	@Override
	public void mouseReleased(MouseEvent e) {
	}

	@Override
	public void keyPressed(KeyEvent e) {
	}

	@Override
	public void keyReleased(KeyEvent e) {
	}

	@Override
	public void keyTyped(KeyEvent e) {
		// TODO Auto-generated method stub
		
	}
}
